package com.Hwadee.eduservice.client;

import com.Hwadee.commonutils.vo.CommentVo;
import com.Hwadee.eduservice.service.impl.UcenterClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name="service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {
    //根据用户id查用户信息
    @GetMapping("/educenter/member/getInfo/{id}")
    public CommentVo getInfo(@PathVariable("id") String id) ;
}
